<!--
 * Copyright © 2022 XXXXXXXXX
 * @Author: zhangxiang
 * @Date: 2022-08-10 17:34:23
 * @LastEditors: zhangxiang
 * @LastEditTime: 2022-11-02 15:33:15
 * @Description:
 *
-->
<script>
export default {
  /**
   * @description: 组件创建
   * @return {*}
   */
  created() {
    const { params, query } = this.$route // 获取路由中参数
    const { path } = params // 获取path
    this.$router.replace({ path: '/' + path, query }) // 重定向
  },
  render: function(h) {
    // avoid warning message
    return h()
  }
}
</script>
